﻿using mozhi.smarterp.Business.Inventories.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Business.Inventories
{
    public class InventoryRealTimeAppService : BusinessAppService, IInventoryRealTimeAppService
    {
        private IInventoryRealTimeRepository _repository;

        public InventoryRealTimeAppService(IInventoryRealTimeRepository repository)
        {
            _repository = repository;
        }

        public async Task<int> GetCountAsync(Guid? productId)
        {
            var count = await _repository.GetCountAsync(productId , null , null , null , null , null);

            return count;
        }

        public Task<PagedResultDto<InventoryRealTimeDto>> GetListAsync(PagedAndSortedResultRequestDto filter)
        {
            throw new NotImplementedException();
        }
    }
}
